package org.example.controller;

import lombok.RequiredArgsConstructor;
import org.example.Result;
import org.example.xxljob.XxlJobServiceApi;
import org.example.entity.dto.XxlJobGroupResponse;
import org.example.service.XxlJobExecutorApi;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zengxiaoyu
 * @date 2025/9/15 15:03
 */
@RestController
@RequiredArgsConstructor
public class TestController implements XxlJobServiceApi {


    private final XxlJobExecutorApi xxlJobExecutorApi;
    @Override
    public Result<Object> allJobs() {
        XxlJobGroupResponse allExecutors = xxlJobExecutorApi.getAllExecutors("");
        return Result.success(allExecutors);
    }
}
